﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="add_receipt.aspx.cs" Inherits="add_receipt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div align="center">
    <br />
        <br />
        <br /><img src="Image/create-receipt.png" alt=""/>
    <br /><br />

        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="orclDataSource1" ForeColor="#FFCC66" BorderColor="#4A1106">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="checkBoxAddOrder" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" 
                    SortExpression="ID" />
                <asp:BoundField DataField="GUEST_ID" HeaderText="GUEST_ID" 
                    SortExpression="GUEST_ID" />
                <asp:BoundField DataField="ROOM_NO" HeaderText="ROOM_NO" 
                    SortExpression="ROOM_NO" />
                <asp:BoundField DataField="STAFF_ID" HeaderText="STAFF_ID" 
                    SortExpression="STAFF_ID" />
                <asp:BoundField DataField="CHECKIN_DATE" HeaderText="CHECKIN_DATE" 
                    SortExpression="CHECKIN_DATE" />
                <asp:BoundField DataField="CHECKOUT_DATE" HeaderText="CHECKOUT_DATE" 
                    SortExpression="CHECKOUT_DATE" />
                <asp:BoundField DataField="STATUS" HeaderText="STATUS" 
                    SortExpression="STATUS" />
            </Columns>
            <HeaderStyle BackColor="#993300" />
            <PagerStyle HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#CC9900" />
        </asp:GridView>
        <asp:SqlDataSource ID="orclDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString26 %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString26.ProviderName %>" 
            SelectCommand="SELECT ID, GUEST_ID, ROOM_NO, STAFF_ID, CHECKIN_DATE, CHECKOUT_DATE, STATUS FROM RESERVATIONS WHERE (STATUS = 'Y') ORDER BY ID">
        </asp:SqlDataSource>
        <br />
                <asp:Button ID="Button2" runat="server" Text="Add Order" BackColor="#FFCC66" 
                    Height="25px" Width="85px" BorderColor="#FF9966" 
            onclick="Add_Order_Click" />&nbsp;&nbsp;
            <asp:Button ID="Button5" runat="server" BackColor="#FFCC66" 
                BorderColor="#FF9966" Height="25px" onclick="Back_Click" Text="&lt;&lt; Back" 
                Width="85px" />
            <br />
        <br />
    <asp:Label ID="Label1" runat="server" ForeColor="#FFCC66"></asp:Label>

    </div>
</asp:Content>

